
class SignRecord {
  int code;
  String msg;
  DataBean data;

  static SignRecord fromMap(Map<String, dynamic> map) {
    if (map == null) return null;
    SignRecord signRecordBean = SignRecord();
    signRecordBean.code = map['code'];
    signRecordBean.msg = map['msg'];
    signRecordBean.data = DataBean.fromMap(map['data']);
    return signRecordBean;
  }

  Map toJson() => {
    "code": code,
    "msg": msg,
    "data": data,
  };
}

class DataBean {
  int teacherSignId;
  int signNum;
  int notSignNum;
  int totalSignNum;
  String signDate;
  String courseName;

  static DataBean fromMap(Map<String, dynamic> map) {
    if (map == null) return null;
    DataBean dataBean = DataBean();
    dataBean.teacherSignId = map['teacherSignId'];
    dataBean.signNum = map['signNum'];
    dataBean.notSignNum = map['notSignNum'];
    dataBean.totalSignNum = map['totalSignNum'];
    dataBean.signDate = map['signDate'];
    dataBean.courseName = map['courseName'];
    return dataBean;
  }

  Map toJson() => {
    "teacherSignId": teacherSignId,
    "signNum": signNum,
    "notSignNum": notSignNum,
    "totalSignNum": totalSignNum,
    "signDate": signDate,
    "courseName": courseName,
  };
}